package com.patzn.osgi.event.admin.sub;

import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;

/**
 * @name: MyEventAdminHandler
 * @description: MyEventAdminHandler
 * @author: jiangcs
 */
public class MyEventAdminHandler implements EventHandler {
    @Override
    public void handleEvent(Event event) {
        System.out.println("== handleEvent ==");
        System.out.println(event.getTopic());
        for (String key : event.getPropertyNames()) {
            System.out.println(key + "=" + event.getProperty(key));
        }
    }
}
